@extends('admin.layouts.app')
@section('content')

                        <!-- Page-Title -->
                        <div class="row">
                            <div class="col-sm-12">
                                

                                <h4 class="page-title">控制台</h4>
                                <p class="text-muted page-title-alt"></p>
                            </div>
                        </div>

						<div class="row">
                            <div class="col-lg-6">
                                <div class="panel panel-success panel-border">
                                    <div class="panel-heading">
                                        <h3 class="panel-title">今日数据</h3>
                                    </div>
                                    <div class="panel-body">
                                        <div class="row">
                                        <div class="col-md-6 col-sm-6 col-lg-6">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Last 24 Hours"></i>
                                    <h4 class="text-dark">参与人数</h4>
                                    <h2 class=" text-center">
                                    <a class="text-warning" href="#">    
                                    <span >{{$today_people}}</span>
                                    </a>
                                </h2>
                                    
                                </div>
                            </div>

                             <div class="col-md-6 col-sm-6 col-lg-6">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Last 24 Hours"></i>
                                    <h4 class="text-dark">中奖次数</h4>
                                    <h2 class="text-pink text-center">
                                    <a class="text-pink" href="{{url('/zadmin/?gift_id=2')}}">    
                                        <span >{{$gifted_today}}</span>
                                    </a>    
                                    </h2>
                                    
                                </div>
                            </div>
                        </div>
                                    </div>
                                </div>
                            </div>
                          <div class="col-lg-6">
                                <div class="panel panel-primary panel-border">
                                    <div class="panel-heading">
                                        <h3 class="panel-title">累计数据</h3>
                                    </div>
                                    <div class="panel-body">
                                        <div class="row">
                                        <div class="col-md-6 col-sm-6 col-lg-6">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Last 24 Hours"></i>
                                    <h4 class="text-dark">参与人数</h4>
                                    <h2 class=" text-center">
                                    <a class="text-warning" href="#">    
                                    <span >{{$total_people}}</span>
                                    </a>
                                </h2>
                                    
                                </div>
                            </div>

                             <div class="col-md-6 col-sm-6 col-lg-6">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Last 24 Hours"></i>
                                    <h4 class="text-dark">中奖次数</h4>
                                    <h2 class="text-pink text-center">
                                    <a class="text-pink" href="{{url('/zadmin/?gift_id=2')}}">    
                                        <span >{{$gifted_total}}</span>
                                    </a>    
                                    </h2>
                                    
                                </div>
                            </div>
                        </div>
                                    </div>
                                </div>
                            </div>  

                           

                 
                    

            </div>

            <div class="row">
                <div class="col-lg-12">
                                <div class="panel panel-info panel-border">
                                    <div class="panel-heading">
                                        <h3 class="panel-title">中奖记录</h3>
                                    </div>
                                    <div class="panel-body">
                                       <div class="row">
                            <div class="col-md-3 col-sm-3 col-lg-3">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Last 24 Hours"></i>
                                    <h4 class="text-dark">一等奖</h4>
                                    <h3 class="text-pink text-center">
                                    <a href="{{url('zadmin/result')}}?gift_id=1" class="text-primary" >    
                                        <span >{{$gift_1}}</span>
                                    </a>    
                                    </h3>
                                    
                                </div>
                            </div>

                            <div class="col-md-3 col-sm-3 col-lg-3">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Last 24 Hours"></i>
                                    <h4 class="text-dark">二等奖</h4>
                                    <h3 class="text-pink text-center">
                                    <a href="{{url('zadmin/result')}}?gift_id=2" class="text-primary" >    
                                        <span >{{$gift_2}}</span>
                                    </a>    
                                    </h3>
                                    
                                </div>
                            </div>

                            <div class="col-md-3 col-sm-3 col-lg-3">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Last 24 Hours"></i>
                                    <h4 class="text-dark">三等奖</h4>
                                    <h3 class="text-primary text-center">
                                    <a href="{{url('zadmin/result')}}?gift_id=3" class="text-primary" >    
                                        <span >{{$gift_3}}</span>
                                    </a>    
                                    </h3>
                                    
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-3 col-lg-3">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Last 24 Hours"></i>
                                    <h4 class="text-dark">特别奖</h4>
                                    <h3 class="text-primary text-center">
                                    <a href="{{url('zadmin/result')}}?gift_id=9" class="text-primary" >    
                                        <span >{{$gift_9}}</span>
                                    </a>    
                                    </h3>
                                    
                                </div>
                            </div>

                            <div class="col-md-3 col-sm-3 col-lg-3">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title=""></i>
                                    <h4 class="text-dark">蘑菇汤券</h4>
                                    <h3 class="text-pink text-center">
                                    <a href="{{url('zadmin/result')}}?gift_id=7" class="text-pink" href="#">    
                                        <span >{{$gift_7}}</span>
                                    </a>    
                                    </h3>
                                    
                                </div>
                            </div>
                            

                            <div class="col-md-3 col-sm-3 col-lg-3">
                                <div class="card-box widget-box-1 bg-white">
                                    <i class="fa fa-info-circle text-muted pull-right inform" data-toggle="tooltip" data-placement="bottom" title=""></i>
                                    <h4 class="text-dark">京东券</h4>
                                    <h3 class="text-pink text-center">
                                    <a href="{{url('zadmin/result')}}?gift_id=4" class="text-pink" href="#">    
                                        <span >{{$gift_4}}</span>
                                    </a>    
                                    </h3>
                                    
                                </div>
                            </div>
                                       </div> 
                                    </div>
                                </div>
                            </div>
            </div>

                        


                        

						<!-- end row -->

                        
@endsection     




@section('js')
<!-- Counterup  -->
        <script src="{{asset('admin/plugins/waypoints/lib/jquery.waypoints.js')}}"></script>
        <script src="{{asset('admin/plugins/counterup/jquery.counterup.min.js')}}"></script>

       
        <script src="{{asset('admin/plugins/raphael/raphael-min.js')}}"></script>
        <script type="text/javascript">
           
            var stringToReplace = "!@#$32ewrwerwe323^&%*()+=-[]\/{}|:<>?,.";
            var desired = stringToReplace.replace(/[^\-\w\s]/gi, '')
            //alert(desired);
        </script>       
		

      
@endsection

    